package com.donica.wamstest.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;

import com.donica.wamstest.entity.CommonFindVO;
import com.donica.wamstest.entity.PermissionVO;
import com.donica.wamstest.entity.RoleVO;
import com.donica.wamstest.entity.UserRoleVO;
import com.donica.wamstest.entity.UserVO;

@Mapper
public interface UserMapper {
	
	//role
	List<RoleVO> getRoles();
	
	//userRole
	long InsertUserRole(List<UserRoleVO> volist);
	
	long UpdateUserRole(List<UserRoleVO> volist);

	long deleteUserRole(List<UserRoleVO> volist);
	
	// user
	long InsertUser(List<UserVO> volist);

	long UpdateUser(List<UserVO> volist);

	long deleteUser(List<UserVO> volist);

	long searchUserCount(CommonFindVO vo);

	List<UserVO> searchUser(CommonFindVO vo);
	
	UserVO getUser(UserVO vo);
	
	List<PermissionVO> getUserPermission(UserVO vo);
}
